<?php
class AnexosController extends AppController {
    public $name = "Anexos";    
    public $scaffold;

    public function gravar($dados = array()){
        try{

            if($this->Anexos->save($dados)){
                throw new Exception;
            }

            return true;
        }catch (Exception $e){
            return false;
        }
    }

}
?>